package com.cdtu;

import org.springframework.boot.test.context.SpringBootTest;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class noticetest {
    public static void main(String[] args) {
        Date date=new Date();
        System.out.println(String.format("%tY%td",date,date));
        SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmmss");
        System.out.println(format.format(date));
        System.out.println(Long.valueOf(format.format(date)));
    }
}
